package com.lsc.www.day06;

public class AnimalTest01 {
    public static void main(String[] args) {
//        Cat cat = new Cat();
//        cat.setAge(2);
//        cat.setName("汤姆");
//        cat.setSex("公");
//        cat.setCat("波斯猫");
        Dog dog = new Dog();
        dog.setName("阿黄");
        dog.setAge(3);
        dog.setSex("母");
        dog.setDog("哈士奇");
//        System.out.println("物种"+cat.getCat()+"名字"+cat.getName()+"性别"
//                +cat.getSex()+"年龄"+cat.getAge());
        System.out.println("物种"+dog.getDog()+"名字"+dog.getName()+"性别"
                +dog.getSex()+"年龄"+dog.getAge());
//        System.out.println(cat.run());
//        System.out.println(dog.jump());
        //题目
        //写一个公共汽车类 轿车类        父类:车类


//        cat.move();
        dog.move();
        Bird bird = new Bird();
        bird.move();



        Cat cat1 = new Cat("汤姆",2,"公","波斯猫");
        System.out.println("物种"+cat1.getCat()+"名字"+cat1.getName()+"性别"
                +cat1.getSex()+"年龄"+cat1.getAge());
    }
}
